<script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="../js/utils.js"></script>
<script type="text/javascript" src="../js/ajax.js"></script>
<script type="text/javascript" src="../js/jquery.tablePagination.0.4.js"></script>
<script type="text/javascript" src="../js/jquery.tablesorter-update.js"></script>
<script type="text/javascript" src="../js/jquery.dialog.extra.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
        $('body').append(
                $('<div>').attr('id', 'loading').append(
                    $('<img>').attr('src', '../images/ajax_loading.gif').attr('alt', 'Cargando...')
                  ).css({
                      position: 'fixed',
                      display: 'none'
                  })
        );		
        $("#divGerencias").show("slow", function(){
			listarGerenciaLVS(false);
        });
		
		$("#btnAgregarGerenciaLVS").click(function(mievento) {
			mievento.preventDefault();
			abreURL("/jsp/formulario_gerencia_lvs.jsp?accion=agregar", "Gerencias", 55, 40, 30, 30);
		});		 
	});

	function editarGerenciaLVS(id){
		abreURL("/jsp/formulario_gerencia_lvs.jsp?accion=editar&id="+id, "Gerencias", 55, 40, 30, 30);
	}	
</script>
<body> 
<h2>Gerencias</h2>
<div id="divGerencias" style="display:none">
<table id="tabla-gerencia" summary="LOSO">
	<thead>
		<tr>
		    <th scope="col" class="rounded-company" align="center"></th>
			<th scope="col" class="rounded">Gerencia</th>
			<th align="center" scope="col" class="rounded">Editar</th>
			<th align="center" scope="col" class="rounded-q4">Borrar</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td colspan="3" class="rounded-foot-left"><em></em></td>
			<td class="rounded-foot-right">&nbsp;</td>
		</tr>
	</tfoot>
	<tbody>
	</tbody>
</table>
<div class="clear"></div>
<a id="btnAgregarGerenciaLVS" href="#" class="bt_green"><span class="bt_green_lft"></span><strong>Agregar gerencia</strong><span class="bt_green_r"></span></a>

</div>
<body> 